package com.ssy.lingxi.purchase.model.request;

import com.ssy.lingxi.common.model.vo.PageVO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-10-29
 */
@Setter
@Getter
public class MaterialPageReq extends PageVO {
    /**
     * 请购单Id
     */
    @NotNull(message = "请购单Id不能为空")
    private Long requisitionId;

    /**
     * 物料编号
     */
    @Size(max = 30, message = "物料编号最长30个字符")
    private String productNo;

    /**
     * 物料名称
     */
    @Size(max = 100, message = "物料名称最长100个字符")
    private String name;

    /**
     * 规格型号
     */
    @Size(max = 50, message = "规格型号最长50个字符")
    private String spec;
}
